<?php

echo doctype('html5');

echo '
<html>
<head>';
echo '<title>{site_title}</title>';

echo meta(array(
	array('name' => 'Content-type', 'content' => 'text/html; charset=utf-8', 'type' => 'equiv'),
	array('name' => 'robots', 'content' => 'NOINDEX, NOFOLLOW')
	)); 
echo link_tag('images/favicon.ico', 'shortcut icon', 'image/ico');
echo '<noscript> <meta http-equiv="refresh" content="0; URL={base_url}error/noscript.html" /> </noscript>';

echo link_tag(array(
          'href' => 'css/style.css',
          'rel' => 'stylesheet',
          'type' => 'text/css',
          'media' => 'all'
));
echo link_tag(array(
          'href' => 'css/jquery-ui-timepicker-addon.css',
          'rel' => 'stylesheet',
          'type' => 'text/css',
          'media' => 'all'
));

echo '
	<script type="text/javascript" src="{base_url}js/jquery.min.js">
	</script>
	<link rel="stylesheet" type="text/css" href="{base_url}css/jqueryui.css" />
	<script type="text/javascript" src="{base_url}js/jqueryui.min.js"></script>
	<link rel="stylesheet" type="text/css" href="{base_url}css/jquery.fancybox.css" media="screen" />
	<script type="text/javascript" src="{base_url}js/jquery.fancybox.js"></script>
	
	
	<link rel="stylesheet" href="{base_url}css/jquery.wysiwyg.css" type="text/css"/>
	<script type="text/javascript" src="{base_url}js/jquery.wysiwyg.js"></script>
	
	<script type="text/javascript" src="{base_url}js/wysiwyg.image.js"></script>
	<script type="text/javascript" src="{base_url}js/wysiwyg.link.js"></script>
	<script type="text/javascript" src="{base_url}js/wysiwyg.table.js"></script>
	<script type="text/javascript" src="{base_url}js/jquery-ui-timepicker-addon.js"></script>
	
	<script type="text/javascript">
		var $jq = jQuery.noConflict();
		
		// wysiwyg untuk deskripsi
		(function ($jq) {
			$jq(document).ready(function () {
				$jq(\'#deskripsi\').wysiwyg({
					resizeOptions: {},

					controls: {
						html: { visible: true }
					}
				});
				$jq(\'#deskripsi2\').wysiwyg({
					resizeOptions: {},

					controls: {
						html: { visible: true }
					}
				});
			});
		})(jQuery);
		
		$jq(document).ready(function () {
			
			$jq("a.taut").click(function(){
				$jq("#isiright").html(\'Loading... <img alt="Loading" src="{base_url}images/ajax-loader2.gif" />\');
				
				var lokasi = $jq(this).attr("href");
				
				$jq("body").load(lokasi);
				
				return false;
			});
			
			
			$jq("#tgllahir").datepicker({
				changeMonth: true,
				changeYear: true,
				dateFormat: "yy-mm-dd",
				maxDate: "-14y",
				yearRange: "c-70"
			});
					
			$jq(function(){
				$jq("#berakhir").datepicker({
					changeMonth: true,
					changeYear: true,
					dateFormat: \'yy-mm-dd\'
				});
			});
			
			$jq("#tglacara").datetimepicker({
				changeMonth: true,
				changeYear: true,
				dateFormat: \'yy-mm-dd\',
				timeOnlyTitle: \'Waktu Pelaksanaan\',
				timeText: \'Waktu\',
				hourText: \'Jam\',
				minuteText: \'Menit\',
				currentText: \'Sekarang\',
				closeText: \'Selesai\'
			});
			
			$jq("a#lihat").fancybox({
					\'overlayShow\'	: true,
					\'transitionIn\'	: \'elastic\',
					\'transitionOut\'	: \'elastic\'
			});
			
		});
		
		// konfirmasi penghapusan
		function konfirmhapus(){
			var hapus = confirm(\'Anda Yakin Akan Menghapusnya?\');
			
			if(hapus == true){
				return true;
			}else{
				return false;
			}
		}
		
		function validasi_kategori(form){
			if(form.kategori.value==\'\'){ alert(\'Kategori harus diisi!\'); form.kategori.focus(); return false; }
		}
		
		function validasi_profil(form){
			if(form.nama.value==\'\'){ alert(\'Nama Harus Diisi!\'); form.nama.focus(); return false; }
			if(form.email.value==\'\'){ alert(\'Email harus diisi!\'); form.email.focus(); return false; }
			if(form.username.value==\'\'){ alert(\'Nama Pengguna harus diisi!\'); form.username.focus(); return false; }
		}
		
		function validasi_usaha(form){
			
			if(form.nama.value==\'\'){ alert(\'Nama Perusahaan Harus Diisi\'); form.nama.focus(); return false; }
			if(form.pemilik.value==\'\'){ alert(\'Nama pemilik harus diisi\'); form.pemilik.focus(); return false; }
			if(form.deskripsi.value==\'\'){ alert(\'Deskripsi harus diisi\'); form.deskripsi.focus(); return false; }
			if(form.alamat.value==\'\'){ alert(\'Alamat harus disertakan!\'); form.alamat.focus(); return false; }
			if(form.kota.value==\'\'){ alert(\'Masukan Kota\'); form.kota.focus(); return false; }
		}
		
		function validasi_produk(form){
			if(form.nama.value==\'\'){ alert(\'Nama Produk Harus Diisi!\'); form.nama.focus(); return false; }
			if(form.deskripsi.value==\'\'){ alert(\'Deskripsi Produk harus diisi!\'); form.deskripsi.focus(); return false; }
		}
		
		function validasi_loker(form){
			
			if(form.posisi.value==\'\'){ alert(\'Posisi Lowongan Harus Diisi!\'); form.posisi.focus(); return false; }
			if(form.deskripsi.value==\'\'){ alert(\'Deskripsi harus diisi!\'); form.deskripsi.focus(); return false; }
			if(form.lokasi.value==\'\'){ alert(\'Lokasi Penempatan harus diisi!\'); form.lokasi.focus(); return false; }
			if(form.cara.value==\'\'){ alert(\'Cara Melamar harus diisi!\'); form.cara.focus(); return false; }
			if(form.berakhir.value==\'\'){ alert(\'Batas waktu harus diisi!\'); form.berakhir.focus(); return false; }
		}
		
		function validasi_pengguna(form){
			if(form.nama.value==\'\'){ alert(\'Nama Harus Diisi!\'); form.nama.focus(); return false; }
			if(form.email.value==\'\'){ alert(\'Email harus diisi!\'); form.email.focus(); return false; }
			if(form.username.value==\'\'){ alert(\'Nama Pengguna harus diisi!\'); form.username.focus(); return false; }
			if(form.password.value==\'\'){ alert(\'Password harus diisi!\'); form.password.focus(); return false; }
			if(form.password2.value==\'\'){ alert(\'Password konfirmasi harus diisi!\'); form.password2.focus(); return false; }
		}
		
		function validasi_acara(form){
			if(form.nama.value==\'\'){ alert(\'Nama Acara Harus Diisi!\'); form.nama.focus(); return false; }
			if(form.deskripsi.value==\'\'){ alert(\'Deskripsi harus diisi!\'); form.deskripsi.focus(); return false; }
		}
		
	</script>
	
</head>
<body>
';

echo '	
	<div id="atas">
				
		<img src="{base_url}images/logoo.png" class="headlogo" alt="logo" />
		<div class="headtitle">
			<h2>Dadan Network</h2>
			<!--<h4>Apapun Bisnis Anda disini Jaringannya</h4>-->
		</div>
		
		
	</div>

	<div id="atas2">
		<div class="headmenu">
			Halaman Administrator 
			<a href="{base_url}verify/logout">Logout</a>
		</div>
	</div>


	<div id="container">
		
		<div id="spaceup"></div>
		
		<div id="tengah">
			<table>
				<tbody>
				
				<tr>
					<td>
					<div id="leftcontent">
						<div id="isileft">
							
							
							
							<div class="leftitem">
								
								<h4>Menu</h4>
								<a href="{base_url}otakkanan/" class="taut">Admin Home</a><br />
								<a href="{base_url}otakkanan/kategori" class="taut">Kategori Usaha</a><br />
							</div>
							
							<div class="linebrown"></div>
							
							<div class="leftitem">
								<a href="{base_url}otakkanan/perusahaan" class="taut">Perusahaan</a><br />
								<a href="{base_url}otakkanan/produk" class="taut">Produk</a><br />
								<a href="{base_url}otakkanan/loker" class="taut">Lowongan Kerja</a><br />
								<!--<a href="{base_url}otakkanan/promosi">Promosi Usaha</a><br />-->
								<a href="{base_url}otakkanan/acara" class="taut">Acara</a><br />
								
							</div>
							
							<div class="linebrown"></div>
							
							<div class="leftitem">
								<a href="{base_url}otakkanan/pengguna" class="taut">Pengguna</a><br />
								<a href="{base_url}otakkanan/masukan" class="taut">Masukan</a><br />
								<a href="{base_url}otakkanan/laporan" class="taut">Laporan</a><br />
								
							</div>
							
							<div class="linebrown"></div>
							
							<div class="leftitem">
								
								
								<a href="{base_url}otakkanan/edit" class="taut">Edit Profil</a><br />
								<a href="{base_url}verify/logout">Logout</a>
								
							</div>
							
							<div class="linebrown"></div>
							
							<div>
								execute : {elapsed_time} <br>
								memory : {memory_usage}
							</div>
							
						</div>
					</div>
					<div id="rightcontent">
						<div id="isiright">
								<div id="mapdir">{map_dir}</div>
								
								{isi_page}
								
								<br>
						</div>
					</div>
					</td>
				</tr>
				<!--<tr>
					<td>
						<div id="menubawah">
							<a href="{base_url}otakkanan/">Home</a> | 
							<a href="{base_url}verify/logout">Logout</a> 
						</div>
					</td>
				</tr>-->
				</tbody>
			</table>
		</div>
		<!-- right coy -->
		
		
		
	</div>
	
	
	<div id="bawah">
		<div class="linered"></div>
		<p>
		&copy; {tahun_sekarang} <a target="_blank" href="{base_url}">Dadan Network Inc</a>
		</p>
	</div>
	
</body>
</html>
';

/* End of file admin.php */
/* Location: ./application/views/template/admin.php */
